package com.kgc.scd.bean;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * order_item
 * @author 
 */
public class OrderItemKey implements Serializable {
    /**
     * 订单号
     */
    @ApiModelProperty("订单号")
    private String itemOrderid;

    /**
     * 商品ID
     */
    @ApiModelProperty("商品ID")
    private String itemProid;

    private static final long serialVersionUID = 1L;

    public String getItemOrderid() {
        return itemOrderid;
    }

    public void setItemOrderid(String itemOrderid) {
        this.itemOrderid = itemOrderid;
    }

    public String getItemProid() {
        return itemProid;
    }

    public void setItemProid(String itemProid) {
        this.itemProid = itemProid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderItemKey other = (OrderItemKey) that;
        return (this.getItemOrderid() == null ? other.getItemOrderid() == null : this.getItemOrderid().equals(other.getItemOrderid()))
            && (this.getItemProid() == null ? other.getItemProid() == null : this.getItemProid().equals(other.getItemProid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getItemOrderid() == null) ? 0 : getItemOrderid().hashCode());
        result = prime * result + ((getItemProid() == null) ? 0 : getItemProid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", itemOrderid=").append(itemOrderid);
        sb.append(", itemProid=").append(itemProid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}